var $ = {
	get:function(query){
		var result = document.querySelectorAll(query);
		if(result.length === 1){
			return result[0]
		}
		else{
			return result;
		}
	},
	getRandomColor:function(){
		var arr = ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"]
		var result = "#";
		for(var i = 0; i < 6;i++){
			var n = arr[Math.round(Math.random() * 15)];
			result += n;
		}
		return result;
	},
	appendAfter:function(node,cz){
		cz.parentNode.insertBefore(node,cz.nextElementSibling);
	},
	remove:function(node){
		node.parentNode.removeChild(node);
	}
}
